package com.foryou.wechat.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by Lee.
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SubjectDTO {

    @NotNull(message="主题ID不能为空")
    private Long subjectId;

    @NotBlank(message="主题不能为空")
    @Length(min=2,max = 10,message="主题长度必须位于2到10位之间")
    private String name;

    private boolean enabled;

}
